require 'View/UIBase/UIBase'
require "Common/define"
require "Logic/Config"
require "Common/functions"
local UIGuildLogSkin = require "View/UIGuild/Skin/UIGuildLogSkin"

UIGuildLog = UIBase.New(PanelNames.UIGuildLog);

function UIGuildLog.Init(func)
    UIBase.Init(UIGuildLog, func);
end

---@param obj GComponent
function UIGuildLog:OnCreate()
    self.viewSkin = UIGuildLogSkin.New(self.fguiObj);
    self.viewSkin:setCloseCallback(self.OnBack,self);
end

function UIGuildLog:OnBack()
    self.backFunc = nil;
    DestoryUI(self._panelName)
end


function UIGuildLog:OnDestroy()
    self.viewSkin:OnDestroy();
end

return UIGuildLog;